package org.example.com.mapper.impl;

import org.apache.ibatis.session.SqlSession;
import org.example.com.mapper.SysUserMapper;
import org.example.com.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class SysUserMapperImpl extends SqlSessionDaoSupport implements SysUserMapper {
    private SqlSessionTemplate sqlSession;
//    @Override
//    public List<SysUser> selectUserList(SysUser sysUser) {
//
//        return sqlSession.selectList("org.example.com.mapper.SysUserMapper.selectUserList",sysUser);
//    }
    @Override
    public List<SysUser> selectUserList(SysUser sysUser) {

        return this.getSqlSession().selectList("org.example.com.mapper.SysUserMapper.selectUserList",sysUser);
    }

    @Override
    public int add(SysUser sysUser) {
        return 0;
    }


}
